package com.lagou.controller;

import com.lagou.model.Response;
import com.lagou.model.vo.RecommendVO;
import com.lagou.service.HomeService;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;


@RestController
@RequestMapping("/home")
public class HomeController {

  @Autowired
  private HomeService homeService;

  @RequestMapping("/recommendList")
  public Response<List<RecommendVO>> getRecommendList() {
    return homeService.getRecommendList();
  }

}
